package org.shreker.shan.core.service.impl;

import org.shreker.shan.core.domain.Account;
import org.shreker.shan.core.mapper.AccountMapper;
import org.shreker.shan.core.service.IAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AccountServiceImpl implements IAccountService {
	
	@Autowired
	private AccountMapper accountMapper;

	@Override
	public void save(Account account) throws Exception {
		accountMapper.insert(account);
	}

	@Override
	public Account get(Long id) throws Exception {
		return accountMapper.selectByPrimaryKey(id);
	}
	
}
